package com.poker.consts;

/**
 * @Author: yuanZ
 * @Date: 2018/7/27 14:05
 * @Description: 选择常量
**/
public class Consts {

    /* Session 存取常量名称 */
    public static final class Session {
        private Session() {}

        // 登录管理员
        public static final String MANAGER = "project-login-manager";

        // 管理员昵称
        public static final String MANAGER_NICK_NAME = "manager-nick-name";

        // 管理员菜单
        public static final String MANAGER_MENUS = "project-manager-menus";

    }

    public static final class Mapping {
        private Mapping() {}

        // 处理返回数据类型
        public static final String PRODUCES_TEXT = "text/html;charset=UTF-8";

    }

    /* 系统配置参数 */
    public static final class SysSetting {
        private SysSetting() {}

        // 用户登录密码错误锁定次数
        public static final String LOGIN_ERROR_TIMES = "login_error_times";

        // 观察员身份结束时间
        public static final String OBSERVER_END_TIME = "observer_end_time";
    }

    /* 管理端操作类型 */
    public static final class EditType {
        private EditType() {}

        public static final String ADD = "ADD";

        public static final String EDIT = "EDIT";

        public static final String DELETE = "DELETE";

    }
}
